package cn.sunxyz.data.sample.domain;

import cn.sunxyz.data.orm.domain.ann.Column;
import cn.sunxyz.data.orm.domain.ann.Id;
import cn.sunxyz.data.orm.domain.ann.Table;

/**
 * Created by yangrd on 2017/6/5.
 */
@Table("test_user")
public class User {

    @Id
    @Column("id")
    private Integer id;

    @Column("name")
    private String name;

    @Column("password")
    private String password;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
